<include file="./Tpl/Home/Header.html"/>
<link href="/Public/Home/bootstrap.min.css?v=3.4.0" rel="stylesheet">
<script src="/Public/Home/bootstrap.min.js?v=3.4.0"></script>
<!-- jQuery Validation plugin javascript-->
<script src="/Public/js/jquery.validate.min.js"></script>
<script src="/Public/js/messages_zh.min.js"></script>
<script src="/Public/js/base.js"></script><style type="text/css">
.buttonGreen2 {
	background: none repeat scroll 0 0 #068814;
	color: #FFFFFF;
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	height: 32px;
	line-height: 32px;
	margin-top: 5px;
	margin-bottom: 5px;
	text-align: center;
	width: 100px;
}
.error{ color:#C00; vertical-align:middle}
.buttonGray2 {
	background: none repeat scroll 0 0 gray;
	color: #FFFFFF;
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	height: 32px;
	line-height: 32px;
	margin-top: 5px;
	margin-bottom: 5px;
	text-align: center;
	width: 120px;
}
.buybtc-subscription {
	float: left;
	height: 200px;
	width: 777px;
}
.buybtc-subscription2 {
	float: left;
	height: 300px;
	width: 777px;
}
.buybtcbody-subscription {
	height: 242px;
}
.finger_img {
	margin-bottom: 35px;
	margin-left: 278px;
	margin-top: -450px;
}
.finger_img1 {
	margin-bottom: 28px;
	margin-left: 13px;
	margin-top: -521px;
}
td {
	text-align: center;
}
.lasttenorder table td {
	border-top: 0px solid #e4e4e4;
	height: 30px;
}
.buysellinput-2 {
	border: 1px solid #e1e1e1;
	height: 20px;
	line-height: 30px;
	width: 30px;
}
</style>
  <script src="__PUBLIC__/js/base.js"></script> 

<div class="marketArea clear"> 	<include file="./Tpl/Home/Left.html"/>

  <div class="rightArea">
    <div class="buysellTitle">
      <div class="selecttab1">
        <ul class="selecttab-box1">
    <li class="cur"> <a href="?s=Home/Packet/index" class="otherBoxTitle">抢红包</a> </li>
          <li class=""> <a href="?s=Home/Packet/my_packet_list" class="otherBoxTitle">发布红包记录</a> </li>
          <li class=""> <a href="?s=Home/Packet/my_packet" class="otherBoxTitle">抢红包记录</a> </li>
        </ul>
        <input type="hidden" value="0" id="playSymobl">
      </div>
    </div>
    <div class="rightArea3">
      <div class="riskArea"> <span class="icon"></span> <span class="hinttext"> <span class="define">简介</span> <span> {$jianjie} </span> </span> </div>
    </div>
    <div style="margin-top: 3px;" class="entrustTen lasttenorder">
      <div class="coinBoxBody"></div>
    </div>
    <div style="margin-top: -30px;" class="entrustTen lasttenorder">
      
      
    </div>
	<div style="display: block;" id="giveGiftBox">
			<div class="bk15"></div>
			<div style="padding:10px;border:1px  #c1c3c4 solid; width:760px;">
				  <form class="form-horizontal m-t" id="signupForm" jump-url="?s=Home/Packet" method="post" action="?s=Home/Packet/packet_add">
				<table border="0">
					<tbody><tr style="height:35px">
						<td style="font-size:20px;font-weight:500; color:#E32222;height: 49px;" colspan="6">众人正在期盼您发红包呢！</td>
					</tr>
					<tr style="height:35px">
						<td style="font-size:16px;width:186px;height: 49px;">总共发多少份<br>(1~1000)</td>
						<td style="width:85px;height: 49px;"><input type="text" style="width:60px;border: 1px  #c1c3c4 solid;height:20px" maxlength="4" value="1" id="count" name="num" /></td>
						<td style="font-size:16px;width:125px">红包里装什么币</td>
										<td style="width:125px">
											<select style="width:100px;border: 1px  #c1c3c4 solid;height:20px" name="type" id="coinname">
												
													<option value="1">来投币{$bname}</option>
												
											</select>
										</td>
										<td style="font-size:16px;width:125px">一共发多少个币</td>
						<td style="width:105px;height: 49px;"><input type="text" onkeyup="JavaScript:resetFloat();" style="width:80px;border: 1px  #c1c3c4 solid;height: 20px;" value="1" id="amount" name="money" /></td>
						<td></td>
					</tr>
					<tr style="height:35px">
						<td style="font-size:16px;width:186px;height: 49px;">红包寄语<br>(最多100字)</td>
						<td colspan="5"><input type="text" style="width:542px;border: 1px  #c1c3c4 solid;height:20px" readonly="readonly" value="恭喜发财，万事如意，股市涨停，币市翻倍" maxlength="100" id="comment" name="content" /> </td>
					</tr>
					<tr style="height:35px">
					    <td colspan="5"><span style="font-size:16px;width:186px;height: 49px;">交易密码</span>&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" id="tradePwd" style="width:150px;border: 1px  #c1c3c4 solid;height:20px" name="password"></td>
						<td id="submitBTN">
					
						<input type="submit"  class="btn btn-primary" value="确定赠派" />
						</td>
					</tr>
				</tbody></table>
 </form>
			</div>
		</div>
    <div style="text-align:left" class="userBody">
						<div id="giftList" style="float:left;width:568px;margin-right:20px;border-right: 1px dashed #000">
							
								<volist name="list" id="vo">
								 <form class="form-horizontal m-t" id="signupForm{$vo.id}" jump-url="?s=Home/Packet" method="post" action="?s=Home/Packet/lingqu">
								<div style="float:left;width:508px;font-size:13px;line-height:180%;margin-bottom: 10px;">
									<span style="float:right;text-align:right; margin-top:35px;" id="getBtn1381">
										<input type="hidden" name="id" value="{$vo.id}" />
											
											{$vo.button}
											
										
									</span>
									
									<span style="color:#999999;font-size:12px">(用户ID {$vo.uid})</span><br>派发了
									{$vo.num} 个{$bname} 红包，一共有 {$vo.money} 个{$bname}<br>当前剩余 <span style="color:#CA0000">{$vo.count|default="0"} / {$vo.num}</span><br>

									<span style="font-size:15px;color:#CA0000;font-weight:700"><b>红包寄语：</b>
									</span><span style="font-size:15px">{$vo.content}</span>
								</div>

								</form>
								</volist>
								<div class="hr bk20"></div>
							
						<div class="page" style="float: left;">
						   <ul>{$page}</ul>
						</div>
						</div>




						<div style="float:left;width:170px">
				<div class="hr bk15"></div>
							<div id="lootingList">
								
								<volist name="news" id="vo">
									<div>
										<span style="color:#999999;font-size:12px">(用户ID {$vo.uid})</span><br>
										<span style="color:#999999">刚刚</span> 抢到了{$vo.money}个{$bname}
									</div>
									<div class="bk8"></div>
								</volist>
									
								
									
								
								
								
								
								
								
								
								
							</div>
						</div>
		</div>
  </div>
  	
</div>
    <!-- jQuery Validation plugin javascript--> 
    <script src="__PUBLIC__/js/jquery.validate.min.js"></script> 
    <script src="__PUBLIC__/js/messages_zh.min.js"></script> 
    <script>	
           $("#signupForm").validate({
			   
                rules: {
                    num: {
                        required: true,
                       range:[1,1000]
                    },
                    money: {
                        required: true,
                      	number:true
                    },
                    content: {
                        required: true,
                      	rangelength:[0,100]
                    },
                    password: {
                        required: true,  	
                    }
                },
                messages: {
                    num: {
                        required: "请输入发放的份数",
                        range: "请输入1-1000之间的分数值"
                    },
                    money: {
                        required: "请输入红包金额",
                        number: "请输入红包金额数量"
                    },
                    content: {
                        required: "请输入红包寄语",
                      	rangelength:"请输入红包寄语"
                    },
                    password: {
                        required: "请输入支付密码",
                    }
                },
				submitHandler:function(form){
					ajax_submit_form(form)
					return false;
				},
				invalidHandler: function() {  //不通过回调 
					  return false; 
				  },
				  errorPlacement: function(error, element) {  
						error.appendTo(element.parent());  
					}     
            });
			
            </script> 

  <script>	
         function submitForm(_this){
			form= $(_this).parents("form");
			ajax_submit_form(form)
			return false;

		}
			
            </script> 
<include file="./Tpl/Home/Footer.html"/>
<script type="text/javascript">

    //显示当前类别样式
    $('#left_main_trance').removeClass().addClass('tradeTitlecur');//一级
    $('#left_main_trance span').removeClass().addClass('trade1cur');
    $('#left_factory').addClass('cur');//二级
</script> 
